const qs = require("querystring");


// let str = "user=admin&pass=123";
// console.log(qs.parse(str));
// console.log(qs.parse(str, "&"));
// let str = "user=admin%pass=123";
let str = "user=admin*pass=123";
console.log(qs.parse(str, "*"));


let obj = { user: 'admin', pass: '123' };
console.log(qs.stringify(obj));
